package cn.sfrog.project.biz.admin.domain;

import cn.sfrog.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;


@Data
@TableName("biz_user_profession_record")
public class BizUserProfessionRecord extends BaseEntity<BizUserProfessionRecord>{

    public static final BizUserProfessionRecord DAO = new BizUserProfessionRecord();

    private static final long serialVersionUID = 1L;
    /**未认证*/
    public static final String NOT_CERTIFIED = "0";
    /**已认证*/
    public static final String VERIFIED = "1";
    /**已过期*/
    public static final String EXPIRED = "2";


    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;


    /** 用户id */
    private Long userId;


    @ApiModelProperty("用户类型( 20=陪诊人员 30=护工 40=医生)")
    private String userType;


    /** 职业资格认证图片 */
    private String professionImage;


    /** 职业名称 */
    private String professionName;


    /** 有效期开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date validStartDate;


    /** 有效期结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date validEndDate;


    /** 认证状态 【0=未认证 1=已认证 2=已过期】 */
    private String status;


    /** 审核状态【0=未审核 1=审核通过 2=审核失败】 */
    private String auditStatus;


    /** 医院id */
    private Long hospitalId;

    /** 科室id */
    private Long departmentId;


}
